Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

symlink-or-copy

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

symlink-or-copy

Symlink files or directories, falling back to copying on Windows

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
136K
decreased by-60.72%
Maintainers
3
Weekly downloads
 
Created

What is symlink-or-copy?

The symlink-or-copy npm package provides a utility to create symbolic links or copy files and directories, depending on the platform and file system capabilities. It is particularly useful in environments where symbolic links are not supported, such as certain Windows configurations.

What are symlink-or-copy's main functionalities?

Create a symbolic link or copy a file

This feature allows you to create a symbolic link to a file or copy the file if symbolic links are not supported. The `sync` method is used to perform the operation synchronously.

const symlinkOrCopy = require('symlink-or-copy');

symlinkOrCopy.sync('source/file.txt', 'destination/file.txt');

Create a symbolic link or copy a directory

This feature allows you to create a symbolic link to a directory or copy the directory if symbolic links are not supported. The `sync` method is used to perform the operation synchronously.

const symlinkOrCopy = require('symlink-or-copy');

symlinkOrCopy.sync('source/directory', 'destination/directory');

Other packages similar to symlink-or-copy

FAQs

Package last updated on 23 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc